package com.ruoyi.web.controller.tool;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.JzToursUser;
import com.ruoyi.system.service.IJzToursUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/open")
@Api("对外接口")
public class UserOpenController {


    @Autowired
    private IJzToursUserService jzToursUserService;

    /**
     * 外部接口获取用户信息
     * @return
     */
    @GetMapping("/get/userinfo/{userId}")
    @ApiOperation("外部接口获取用户信息")
    public AjaxResult getUserInfo(@PathVariable("userId") Long userId){
        JzToursUser jzToursUser=new JzToursUser();
         jzToursUser=jzToursUserService.selectJzToursUserById(userId);
        return  AjaxResult.success("请求成功",jzToursUser);
    }







}
